﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace _2DLineCamera
{
    public partial class Form2 : Form
    {
        public string Name = "";
        public Form2()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if(textBox1.Text !="" && textBox1.Text !=null)
            {
                Name = textBox1.Text;
                this.Close();
            }
            else
            {
                MessageBox.Show("新增产品失败");
                this.Close();
            }
        }
    }
}
